#ifndef __GL_VIEWER__
#define __GL_VIEWER__
#include "glew/glew.h"
#include "glew/wglew.h"

#define  GLFW_DLL
#include <GLFW/glfw3.h>
#include <stdint.h>
#include <stdlib.h>
#include <iostream>

class glViewer
{
public:
	glViewer(void);
	~glViewer(void);

	GLFWwindow * window;
	GLuint colorTex;
	GLuint depthTex;
	GLubyte * colorData;
	GLushort * depthData;

	GLfloat * handData;

	UINT WIDTH;
	UINT HEIGHT;
	bool drawDepth;

	void initializeWindow(int width, int height, const char * title);
	void setupTextureForNI();
	void setupTextureForMS();
	void rendering();

	long * depthToRgbMap;
};

#endif